package controllers

import "git.oschina.net/hfwb/tianqi.git/tq/model"

type City struct {
    base
}

func (this *City) Search() {
    name := this.GetString("name")
    if list, err := model.NewCity().Search(name); err != nil {
        this.Response(err)
    } else {
        this.Response(list)
    }
}
